package com.cuitrip.business.pay.model;

import com.cuitrip.business.notice.model.FeeDescription;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by sheena on 15/12/5.
 */
public class PayMode implements Serializable{
    /**
     * {
     “code”: “0”,
     “msg”: “succeed”,
     “result”: {
     “used”: “2”,					// 本次抵用优惠券张数
     “finalPrice”: “300”,				// 最终订单价格
     “payCurrency”: “CNY”,				// 当前支付货币
     "channel": "alipay",
     "payFee": "0.00", // 订单支付手续费
     "serviceFee": "0.00", // 订单平台使用费
     "couponFee": "0.00", // 订单使用优惠券金额
     "serviceFeeIsCharged": "0",         //  0:不收取
     "tranFeeIsCharged": "1",            //  1:需要收取
     “lists”:
     [{
     “code”:”1”,				// 券id
     “money”:”500”,				// 优惠金额
     “moneyType”:”CNY”,			// 币种
     “invalidDate”:”2015-09-07 00:00:00”	// 失效期
     },
     {
     “code”:”2”,
     “money”:”500”,
     “moneyType”:”CNY”,
     “invalidDate”:”2015-09-07 00:00:00”
     }]
     }

     "notice": [{
     "content": "TRANSACTION_FEE_NOTICE_CONTENT",
     "title": "TRANSACTION_FEE_NOTICE_TITLE"
     }, {
     "content": "SERVICE_FEE_NOTICE_CONTENT",
     "title": "SERVICE_FEE_NOTICE_TITLE"
     }]
     }
     */

    public static final String HIDE="-1";
    public static final String CHARGE="1";
    public static final String NOT_CHARGE="0";

    private String used;
    private String finalPrice;
    private String payCurrency;
    private String channel;
    private String payFee;
    private String serviceFee;
    private String serviceFeeIsCharged;
    private String tranFeeIsCharged;

    private ArrayList<coupon> lists=new ArrayList<>();
    public class coupon implements Serializable{
        public String code;
        public String money;
        public String moneyType;
        public String invalidDate;
    }

    private ArrayList<FeeDescription> notice=new ArrayList<>();
//    public class FeeDescription implements Serializable{
//        public String content;
//        public String title;
//    }

    public ArrayList<FeeDescription> getNotice() {
        return notice;
    }

    public void setNotice(ArrayList<FeeDescription> notice) {
        this.notice = notice;
    }

    private String couponFee;

    public String getCouponFee() {
        return couponFee;
    }

    public void setCouponFee(String couponFee) {
        this.couponFee = couponFee;
    }

    public String getServiceFeeIsCharged() {
        return serviceFeeIsCharged;
    }

    public void setServiceFeeIsCharged(String serviceFeeIsCharged) {
        this.serviceFeeIsCharged = serviceFeeIsCharged;
    }

    public String getTranFeeIsCharged() {
        return tranFeeIsCharged;
    }

    public void setTranFeeIsCharged(String tranFeeIsCharged) {
        this.tranFeeIsCharged = tranFeeIsCharged;
    }

    public String getUsed() {
        return used;
    }

    public void setUsed(String used) {
        this.used = used;
    }

    public String getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(String finalPrice) {
        this.finalPrice = finalPrice;
    }

    public String getPayCurrency() {
        return payCurrency;
    }

    public void setPayCurrency(String payCurrency) {
        this.payCurrency = payCurrency;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getPayFee() {
        return payFee;
    }

    public void setPayFee(String payFee) {
        this.payFee = payFee;
    }

    public String getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }

    public ArrayList<coupon> getLists() {
        return lists;
    }

    public void setLists(ArrayList<coupon> lists) {
        this.lists = lists;
    }

}
